<?php

namespace App\Models;

use App\Models\Api\Base;

class Divination extends Base
{
    public $timestamps = false;
    protected $table = 'divinations';

    public $guarded = [];

    public function user(){
        return $this->hasOne('App\Models\Api\User','id','user_id');
    }

    public function plant(){
        return $this->hasOne('App\Models\Dice','id','planet_id');
    }
    public function constellation(){
        return $this->hasOne('App\Models\Dice','id','constellation_id');
    }

    public function palace(){
        return $this->hasOne('App\Models\Dice','id','palace_id');
    }

    public function before(){
        return $this->hasOne('App\Models\Tarot','id','before_id');
    }
    public function now(){
        return $this->hasOne('App\Models\Tarot','id','now_id');
    }

    public function future(){
        return $this->hasOne('App\Models\Tarot','id','future_id');
    }

}
